home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / html-php.lha / html-php / example / index.php
Encoding:
PHP Script  |  2001-02-12  |  2.3 KB  |  49 lines

  1. <?php
  2.     require "admin/php/db-read.php";
  3.     setlocale ("LC_TIME", "de_CH");
  4.     $query = "SELECT *, MAX(datum) AS letzter FROM witze GROUP BY datum, titel ORDER BY datum DESC";
  5.     $res = mysql_query ($query);
  6.     $anz = mysql_num_rows ($res);
  7. ?>
  8. <HTML>
  9. <HEAD>
  10.     <TITLE>www.AngieBecker.ch - Die ultimative Kultseite ...</TITLE>
  11. </HEAD>
  12.  
  13. <BODY BGCOLOR="#FFFFFF" LINK="#6050E0" ALINK="#F06060" VLINK="#7830B8">
  14. <CENTER>
  15. <FONT FACE="Helvetica, Arial">
  16. <P><IMG ALT="www.AngieBecker.ch" SRC="bilder/AngieBecker.gif" BORDER=0 HEIGHT=52 WIDTH=238></P>
  17. <H1><FONT COLOR="#FF0000">Witze, Satieren und Comics</FONT></H1>
  18.  
  19. <TABLE WIDTH="100%" BORDER=0 CELLPADDING=8 CELLSPACING=0 COLS=2>
  20.     <TR><TD WIDTH="30%"></TD>
  21.     <TD WIDTH="70%"></TD></TR>
  22. <?php
  23.     for ($i = 0; $i < $anz; $i++) {
  24.         $witz = mysql_fetch_object ($res);
  25.         if ($i == 0) { $letzter = $witz->datum; }
  26.         if ((empty($show) && ($i == 0)) || ($show == StripSlashes($witz->id))) {
  27.             include ("admin/php/Tabelle.inc");
  28.         } else {
  29.             include ("admin/php/Zeile.inc");
  30.         }
  31.     }
  32. ?>
  33.     <TR><TD COLSPAN=2></TD></TR>
  34. </TABLE>
  35.  
  36. <P><FONT COLOR="#A0A0A0"><?php echo strftime("%d. %B %Y", StripSlashes($letzter)) ?></FONT></P>
  37. <P><FONT COLOR="#A0A0A0" SIZE="+1">Powered by <A HREF="http://www.Studi.ch/"><IMG ALIGN="ABSMIDDLE" ALT="www.Studi.ch" BORDER=0 SRC="http://www.Studi.ch/bilder/Studi.gif" WIDTH=158 HEIGHT=23></A></FONT></P>
  38. <P>
  39. <TABLE WIDTH="75%" BORDER=0 CELLPADDING=4 CELLSPACING=0 COLS=4>
  40.     <TR><TD WIDTH="48%" ALIGN="RIGHT"><FONT FACE="Helvetica, Arial" COLOR="#A0A0A0">Besucher bisher von intern : <IMG ALIGN="ABSMIDDLE" SRC="http://www.Studi.ch/cgi-bin/count/count_dual.cgi?style=schwarz&trans=255,255,255&page=AB&show=intern"> </FONT></TD>
  41.     <TD WIDTH="4%" ALIGN="CENTER"><IMG SRC="http://www.Studi.ch/bilder/Grau.gif" WIDTH=8 HEIGHT=8></TD>
  42.     <TD WIDTH="28%"><FONT FACE="Helvetica, Arial" COLOR="#A0A0A0"> <IMG ALIGN="ABSMIDDLE" SRC="http://www.Studi.ch/cgi-bin/count/count_dual.cgi?style=schwarz&trans=255,255,255&page=AB&show=extern"> : von extern.</FONT></TD>
  43.     <TD WIDTH="20%" ALIGN="RIGHT"><A HREF="http://www.Studi.ch/amiga-links.html"><IMG ALIGN="ABSMIDDLE" ALT="Made with Amiga" BORDER=0 SRC="http://www.Studi.ch/bilder/Amiga_made.gif" WIDTH=88 HEIGHT=31></A></TD></TR>
  44. </TABLE></P>
  45. </FONT>
  46. </CENTER>
  47. </BODY>
  48. </HTML>
  49.